package cn.ljy.mes.web.controller.backstage.wms.warehouse;


import cn.ljy.authority.web.controller.backstage.BaseBackstageController;
import cn.ljy.mes.model.WmsWarehouseArea;
import cn.ljy.mes.model.query.WmsWarehouseAreaQuery;
import cn.ljy.mes.service.MesMaterialService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台仓库模块")
@RestController
@RequestMapping(value = "/backstage/wms/warehouseArea")
public class WmsWarehouseAreaController extends BaseBackstageController<WmsWarehouseArea, WmsWarehouseAreaQuery,String> {

    @Autowired
    private MesMaterialService baseService;

    @Override
    public String getAuthorityPrefix() {
        return "wms:warehousearea"; // 定义模块权限前缀
    }

//    @GetMapping("/all")
//    @PreAuthorize("hasAuthority('wms:warehousearea:query')")
//    @Override
//    protected ResponseData query(WmsWarehouseAreaQuery query) {
//        return super.query(query);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehousearea:query')")
//    @Override
//    public ResponseData query(Integer page, Integer pageSize, WmsWarehouseAreaQuery query){
//        return super.query(page,pageSize,query);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehousearea:add')")
//    @Override
//    protected ResponseData add(@Validated({AddWorkValidation.class}) @RequestBody WmsWarehouseArea wmsWarehouseArea) {
//        return super.add(wmsWarehouseArea);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehousearea:query')")
//    @Override
//    protected ResponseData get(@PathVariable String id) {
//        return super.get(id);
//    }
//
//
//    @PreAuthorize("hasAuthority('wms:warehousearea:edit')")
//    @Override
//    public ResponseData edit(@Validated({UpdateWorkValidation.class}) @RequestBody WmsWarehouseArea wmsWarehouseArea){
//        return super.edit(wmsWarehouseArea);
//    }
//
//    @PreAuthorize("hasAuthority('wms:warehousearea:del')")
//    @Override
//    public ResponseData deletes(String[] ids){
//        return super.deletes(ids);
//    }

}
